//
//  getUserInformation.swift
//  swift一遍敲
//
//  Created by 刘耀宗 on 16/4/20.
//  Copyright © 2016年 刘耀宗. All rights reserved.
//

import UIKit

class getUserInformation: NSObject {
    let urlStr = "https://api.weibo.com/2/statuses/home_timeline.json"
    //单例
    static let shareGetUser: getUserInformation = getUserInformation()
    
    func loadGetUserMessage(access_token: String,backallocate: (error: NSError?) -> ())
    {
        let parameters = [
            "access_token" : access_token
            
        ]
        
        
        HMAFNTool.shareAfnwork.GET(urlStr, parameters: parameters, success: { (task, responesObject) in
            
            print("加载token成功")
            
            }) { (task, error) in
                
                print("加载token失败")
                
        }
    
    
    
    }

}
